<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('分批次返回确认')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-partbackconfirm-edit" >
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">批号：</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" name="lotId" th:value="*{lotId}" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">片数：</label>
                <div class="col-sm-8">
                    <input type="number" min="1" max="24" class="form-control" name="mainQty" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">分批次返回原因：</label>
                <div class="col-sm-8">
                    <textarea name="returnPartialReason" class="form-control" required></textarea>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "outsource/partospartialbackrecord";
        var lotId = [[${lotId}]];
        var applyNo = [[${applyNo}]];

        $("#form-partbackconfirm-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                var data = $('#form-partbackconfirm-edit').serialize();
                data = data + "&applyNo=" + applyNo;
                $.operate.save(prefix + "/partbackconfirmsave", data);
            }
        }
    </script>
</body>
</html>